<?php
$loader->requireOnce('includes/AutoSuggest/DrugMaterialAutoSuggest.class.php');
$loader->requireOnce('includes/AutoSuggest/AreaCodeAutoSuggest.class.php');
$loader->requireOnce('includes/AutoSuggest/DummyAutoSuggest.class.php');
/**
 * Processor for doing auto suggest
 * @package modules.dept_pharmacy.includes
 * @author viethd
 * @version $Id$
 * @copyright 2009 LHV Company
 */
class AutoSuggestEngine {
    const DRUG_MATERIAL = 1;
    const AREA_CODE = 2;
	
	private $logger ;
	function __construct() {
		
	}
	
	public function getAutoSuggest($suggestType) {
	    switch ($suggestType) {
	    	case AutoSuggestEngine::DRUG_MATERIAL:
	    	    return new DrugMaterialAutoSuggest();
	    	case AutoSuggestEngine::AREA_CODE:
                return new AreaCodeAutoSuggest();
	    	default:
	    		return new DummyAutoSuggest();
	    }
	    
	}
	
}
?>